package pers.rcklos.myserver.entity;

import java.sql.Date;

public class SpUser {
	private int uid;				// 用户id
	private String userName;		// 用户名称
	private String userPassword;	// 用户密码
	
	private String userNickName;	// 用户昵称
	private String userPhone;		// 用户电话
	private String userEmail;		// 用户邮箱
	
	private int userSchoolId;		// 用户学校id
	private String userStuInfo;		// 用户学生信息
	private boolean userStuVerify;	// 用户是否通过学生验证
	
	private String extendsInfo;		// 拓展JSON信息
	
	private Date createTime;		// 用户注册时间
	private Date lastLoginTime;		// 用户最近登录时间
	
	private boolean is_delete;
	
	public SpUser() {}
	
	public SpUser(int uid, String userName, String userPassword, String userNickName, String userPhone, String userEmail,
			int userSchoolId, String userStuInfo, boolean userStuVerify, String extendsInfo) {
		super();
		this.uid = uid;
		this.userName = userName;
		this.userPassword = userPassword;
		this.userNickName = userNickName;
		this.userPhone = userPhone;
		this.userEmail = userEmail;
		this.userSchoolId = userSchoolId;
		this.userStuInfo = userStuInfo;
		this.userStuVerify = userStuVerify;
		this.extendsInfo = extendsInfo;
	}

	public SpUser(int uid) {
		super();
		this.uid = uid;
	}

	public SpUser(String userName, String userPassword) {
		super();
		this.userName = userName;
		this.userPassword = userPassword;
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public String getUserNickName() {
		return userNickName;
	}

	public void setUserNickName(String userNickName) {
		this.userNickName = userNickName;
	}

	public String getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public String getUserEmail() {
		return userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	public int getUserSchoolId() {
		return userSchoolId;
	}

	public void setUserSchoolId(int userSchoolId) {
		this.userSchoolId = userSchoolId;
	}

	public String getUserStuInfo() {
		return userStuInfo;
	}

	public void setUserStuInfo(String userStuInfo) {
		this.userStuInfo = userStuInfo;
	}

	public boolean isUserStuVerify() {
		return userStuVerify;
	}

	public void setUserStuVerify(boolean userStuVerify) {
		this.userStuVerify = userStuVerify;
	}

	public String getExtendsInfo() {
		return extendsInfo;
	}

	public void setExtendsInfo(String extendsInfo) {
		this.extendsInfo = extendsInfo;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}
	

	public boolean isIs_delete() {
		return is_delete;
	}

	public void setIs_delete(boolean is_delete) {
		this.is_delete = is_delete;
	}

	@Override
	public String toString() {
		return "SpUser [uid=" + uid + ", userName=" + userName + ", userPassword=" + userPassword + ", userNickName="
				+ userNickName + ", userPhone=" + userPhone + ", userEmail=" + userEmail + ", userSchoolId="
				+ userSchoolId + ", userStuInfo=" + userStuInfo + ", userStuVerify=" + userStuVerify + ", extendsInfo="
				+ extendsInfo + ", createTime=" + createTime + ", lastLoginTime=" + lastLoginTime + ", is_delete="
				+ is_delete + "]";
	}
	
}
